var e = require("../../@babel/runtime/helpers/regeneratorRuntime"), o = require("../../@babel/runtime/helpers/objectSpread2"), t = require("../../@babel/runtime/helpers/asyncToGenerator"), a = require("../../common/vendor.js"), n = require("../../api/ajax.js"), i = require("../../uni_modules/uv-ui-tools/libs/function/index.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js"), require("../../config/config.js"), 
require("../../uni_modules/uv-ui-tools/libs/function/test.js"), require("../../uni_modules/uv-ui-tools/libs/function/digit.js");

var r = {
    setup: function() {
        var e = a.useStore();
        return {
            upInfo: function(o) {
                e.commit("showCar/upInfo", o);
            },
            showCar: e.state.showCar
        };
    },
    onReady: function() {
        this.$refs.form.setRules(this.rules);
    },
    data: function() {
        return {
            isABC: !1,
            buweiBox: !1,
            tableLoading: !1,
            showDataPicker: !1,
            fileListtitlepic: [],
            loading: !1,
            category: "请选择",
            category1: "请选择",
            productId: 0,
            categoryId: 0,
            checkboxValue: [ "全车" ],
            daodianTime: Number(new Date()),
            shigongTime: Number(new Date()),
            showCategory1: !1,
            categoryData: [],
            categoryColumns: [],
            categoryData1: [],
            categoryColumns1: [],
            product: "请选择",
            productData: [],
            productColumns: [],
            infoData: [],
            postData: [],
            model: {
                addInfo: {
                    truename: "",
                    mobile: "",
                    chepaihao: "",
                    chejiahao: "",
                    xingshizheng: "",
                    xiangmu: "",
                    buwei: "全车",
                    daodian: i.timeFormat(Number(new Date()), "yyyy-mm-dd"),
                    shigong: i.timeFormat(Number(new Date()), "yyyy-mm-dd"),
                    zhibao: "",
                    juanxin: "",
                    intro: ""
                }
            },
            zhibaoColumns: [ [ "一年", "二年", "三年", "四年", "五年", "六年", "七年", "八年", "九年", "十年", "终身" ] ],
            rules: {
                "addInfo.truename": {
                    type: "string",
                    required: !0,
                    message: "请输入客户姓名",
                    trigger: [ "change" ]
                },
                "addInfo.mobile": {
                    type: "string",
                    required: !0,
                    message: "请输入客户电话",
                    trigger: [ "change" ]
                },
                "addInfo.chepaihao": {
                    type: "string",
                    required: !0,
                    message: "请输入车牌号",
                    trigger: [ "change" ]
                },
                "addInfo.zhibao": {
                    type: "string",
                    required: !0,
                    message: "请选择质保时间",
                    trigger: [ "change" ]
                },
                "addInfo.daodian": {
                    type: "string",
                    required: !0,
                    message: "请选择到店时间",
                    trigger: [ "change" ]
                },
                "addInfo.shigong": {
                    type: "string",
                    required: !0,
                    message: "请选择施工时间",
                    trigger: [ "change" ]
                },
                "addInfo.intro": {
                    type: "string",
                    required: !0,
                    message: "请输入订单备注",
                    trigger: [ "change" ]
                }
            },
            checkboxList: [ {
                name: "全车",
                disabled: !0
            }, {
                name: "前挡",
                disabled: !1
            }, {
                name: "侧挡",
                disabled: !1
            }, {
                name: "天窗",
                disabled: !1
            }, {
                name: "后档",
                disabled: !1
            }, {
                name: "其他",
                disabled: !1
            } ],
            columnTable: [ {
                name: "id",
                label: "编号",
                width: 50,
                align: "center"
            }, {
                name: "buwei",
                label: "部位",
                width: 50,
                align: "center"
            }, {
                name: "xinghao",
                label: "型号",
                sorter: !1,
                align: "center"
            }, {
                name: "zhibao",
                label: "质保",
                width: 50,
                align: "center"
            }, {
                name: "operation",
                type: "operation",
                label: "操作",
                align: "center",
                renders: [ {
                    name: "编辑",
                    func: "edit"
                } ]
            } ],
            dataTable: [ {
                id: 0,
                buwei: "全车",
                xinghao: "",
                zhibao: ""
            } ],
            editData: [],
            dataTree: [ {} ]
        };
    },
    onLoad: function() {
        this.getCategoryData(0, 0), this.getTreeList(0);
    },
    methods: {
        onchange: function(e) {
            var o = this, t = e.detail.value;
            console.log("arr", t);
            var a = t[t.length - 1];
            console.log("data", a);
            var i = a.value;
            this.tableLoading = !0, n.doPostUrl("quality.Buwei/edit", {
                data: this.editData,
                all: this.dataTable
            }, {
                product_id: i
            }).then(function(e) {
                o.dataTable = e.data.data, o.tableLoading = !1;
            });
        },
        getTreeList: function(e) {
            var o = this;
            n.doGetUrl("product.Picker/tree", {
                category_id: e
            }).then(function(e) {
                o.dataTree = e.data.data;
            });
        },
        buttonEdit: function(e, o) {
            this.editData = e, this.showDataPicker = !0, this.$refs.productPicker1.show();
        },
        scanCode: function() {
            a.index.scanCode({
                success: function(e) {
                    this.model.addInfo.juanxin = e.result;
                },
                fail: function(e) {
                    a.index.showToast({
                        title: e.errMsg,
                        icon: "none"
                    });
                }
            });
        },
        checkboxChange: function(e) {
            var o = this;
            n.doGetUrl("quality.Buwei/index", {
                product_id: this.productId,
                checked: e
            }).then(function(t) {
                var a = t.data.data;
                o.dataTable = a, o.model.addInfo.buwei = e.toString();
            });
        },
        showCategoryPicker: function() {
            if (!this.showCar.carInfo.series_id) return a.index.showToast({
                title: "请先选择车型！",
                icon: "none"
            }), !1;
            this.$refs.categoryPicker.open(), this.category = "请选择", this.category1 = "请选择", 
            this.product = "请选择", this.showCategory1 = !1, this.hideKeyboard();
        },
        showCategoryPicker1: function() {
            if (null == this.categoryData[0].category_id) return this.category = "请选择", a.index.showToast({
                title: "请先选择产品类型！",
                icon: "none"
            }), !1;
            this.$refs.categoryPicker1.open(), this.category1 = "请选择", this.product = "请选择", 
            this.hideKeyboard();
        },
        showProductPicker: function() {
            if (console.log("showProductPicker", this.category), console.log("showProductPicker", this.category1), 
            "请选择" == this.category) return a.index.showToast({
                title: "请先选择产品类型！",
                icon: "none"
            }), !1;
            this.$refs.productPicker.open(), this.hideKeyboard();
        },
        getCategoryData: function(e, o) {
            var t = this;
            n.doGetUrl("product.Picker/category", {
                parent_id: e
            }).then(function(e) {
                var a = e.data.data;
                o ? (t.categoryData1 = a.data, t.categoryColumns1 = a.columns) : (t.categoryData = a.data, 
                t.categoryColumns = a.columns);
            });
        },
        categoryConfirm: function(e) {
            var o = e.indexs[0], t = this.categoryData[o];
            this.category = e.value[0];
            var a = t.is_last, n = t.category_id;
            71 == n && (this.buweiBox = !0), this.categoryId = n, a ? this.getInfoList(n) : (this.showCategory1 = !0, 
            this.getCategoryData(n, 1));
        },
        categoryConfirm1: function(e) {
            var o = e.indexs[0], t = this.categoryData1[o];
            this.category1 = e.value[0];
            var n = t.is_last, i = t.category_id;
            this.categoryId = i, n ? this.getInfoList(i) : a.index.showToast({
                icon: "error",
                title: "发生错误"
            });
        },
        getInfoList: function(e) {
            var o = this;
            n.doGetUrl("product.Picker/columns", {
                category_id: e
            }).then(function(e) {
                var t = e.data.data;
                o.productData = t.data, console.log("productData", o.productData), o.productColumns = t.title;
            });
        },
        productConfirm: function(e) {
            console.log("productConfirm", e);
            var o = e.indexs[0];
            console.log("columnIndex", o);
            var t = this.productData[o];
            console.log("productData", t), this.product = e.value[0];
            var a = t.product_id, n = t.title, i = t.zhibao;
            console.log(this.category,this.category1,n);
            this.model.addInfo.chanpin = this.category + " " + n, this.checkboxValue = [ "全车" ], 
            this.dataTable = [ {
                id: a,
                buwei: "全车",
                xinghao: n,
                zhibao: i
            } ], this.getInfoData(a);
        },
        getInfoData: function(e) {
            var o = this;
            n.doGetUrl("product.Product/detail", {
                product_id: e
            }).then(function(e) {
                var t = e.data.data;
                o.infoData = t, console.log("infoData", t), o.postData = {
                    product_id: t.product_id,
                    product_name: t.title
                };
            });
        },
        showChepai: function() {
            this.$refs.carInput.open(), this.hideKeyboard();
        },
        carChange: function(e) {
            this.model.addInfo.chepaihao = this.model.addInfo.chepaihao + e;
        },
        carDelete: function() {
            this.model.addInfo.chepaihao = "";
        },
        changeCarInputMode: function(e) {
            this.isABC = e;
        },
        showShigongPicker: function() {
            this.$refs.shigongPicker.open(), this.hideKeyboard();
        },
        shigongConfirm: function(e) {
            var o = i.timeFormat(e.value, "yyyy-mm-dd");
            this.model.addInfo.shigong = o;
        },
        showDaodianPicker: function() {
            this.$refs.daodianPicker.open(), this.hideKeyboard();
        },
        daodianConfirm: function(e) {
            var o = i.timeFormat(e.value, "yyyy-mm-dd");
            this.model.addInfo.daodian = o;
        },
        showZhibaoPicker: function() {
            this.$refs.zhibaoPicker.open(), this.hideKeyboard();
        },
        zhibaoConfirm: function(e) {
            this.model.addInfo.zhibao = e.value[0];
        },
        submit: function() {
            var e = this;
            console.log(e.fileListtitlepic);
            this.$refs.form.validate().then(function(o) {
                var t = Object.assign(e.model.addInfo, e.postData, e.showCar.carInfo, {
                    titlepic: e.fileListtitlepic[0].url,
                    buweidata: JSON.stringify(e.dataTable)
                });
                var modelt={
                  brand_name:e.showCar.carInfo.brand_name,
                  firms_name:e.showCar.carInfo.firms_name,
                  brand_image:e.showCar.carInfo.brand_titlepic,
                  series_name:e.showCar.carInfo.series_name
                }
                console.log(JSON.stringify(modelt));
                var subform={
                  ...modelt,
                  product_type: e.category,
                  model:t.product_name,
                  images:t.titlepic,
                  name:t.truename,
                  phone:t.mobile,
                  plate_number:t.chepaihao,
                  frame_number:t.chejiahao,
                  warranty_number:t.bianhao,
                  core_number:t.juanxin,
                  arrival_time:t.daodian,
                  construct_time:t.shigong,
                  period_time:t.zhibao,
                  construct_product:t.chanpin,
                  construct_project:t.xiangmu,
                  product_color:t.yanse,
                  construct_humen:t.jishi,
                  construct_unit:t.danwei,
                  price:t.lingshou
                }

                n.doPostUrl("https://che.fuliaoxx.com/api/index/postInsert", subform).then(function(o) {
                    console.log("info", o);
                    var t = o.data;
                    t.code ? a.index.navigateTo({
                        url: "/pages/quality/quality?keywords=" + e.model.addInfo.mobile
                    }) : a.index.showToast({
                        icon: "error",
                        title: t.msg
                    });
                });
            }).catch(function(e) {
                a.index.showToast({
                    icon: "error",
                    title: "校验失败"
                });
            });
        },
        goPage: function(e) {
            a.index.navigateTo({
                url: "/pages/" + e
            });
        },
        hideKeyboard: function() {
            a.index.hideKeyboard();
        },
        deletePic: function(e) {
            this["fileList".concat(e.name)].splice(e.index, 1);
        },
        afterRead: function(a) {
            var n = this;
            return t(e().mark(function t() {
                var i, r, d, u, l;
                return e().wrap(function(e) {
                    for (;;) switch (e.prev = e.next) {
                      case 0:
                        i = [].concat(a.file), r = n["fileList".concat(a.name)].length, i.map(function(e) {
                            n["fileList".concat(a.name)].push(o(o({}, e), {}, {
                                status: "uploading",
                                message: "上传中"
                            }));
                        }), d = 0;

                      case 3:
                        if (!(d < i.length)) {
                            e.next = 12;
                            break;
                        }
                        return e.next = 6, n.uploadFilePromise(i[d].url);

                      case 6:
                        u = e.sent, l = n["fileList".concat(a.name)][r], n["fileList".concat(a.name)].splice(r, 1, Object.assign(l, {
                            status: "success",
                            message: "",
                            url: u
                        })), r++;

                      case 9:
                        d++, e.next = 3;
                        break;

                      case 12:
                      case "end":
                        return e.stop();
                    }
                }, t);
            }))();
        },
        uploadFilePromise(url) {
          console.log(url);
          return new Promise((resolve, reject) => {
            let a = wx.uploadFile({
              url: 'https://che.fuliaoxx.com/api/common/upload', // 仅为示例，非真实的接口地址
              filePath: url,
              name: 'file',
              formData: {
                user: 'test'
              },
              success: (res) => {
                setTimeout(() => {
                  resolve(JSON.parse(res.data).data.fullurl)
                }, 1000)
              }
            });
          })
        },


        // uploadFilePromise: function(e, o) {
        //   // console.log( o, e);
        //     var t = this;
        //     return new Promise(function(a, i) {
        //         n.doUploadUrl("https://che.fuliaoxx.com/api/common/upload", o, e, {
        //             field: o,
        //             classid: t.categoryId
        //         }).then(function(e) {
        //             console.log("res", e.data.data), setTimeout(function() {
        //                 a(e.data.data);
        //             }, 1e3);
        //         });
        //     });
        // }
    }
};

Array || (a.resolveComponent("uv-list-item") + a.resolveComponent("uv-list") + a.resolveComponent("uv-cell") + a.resolveComponent("uv-cell-group") + a.resolveComponent("uv-upload") + a.resolveComponent("uv-input") + a.resolveComponent("uv-form-item") + a.resolveComponent("uv-icon") + a.resolveComponent("uv-button") + a.resolveComponent("uv-checkbox") + a.resolveComponent("uv-checkbox-group") + a.resolveComponent("zb-table") + a.resolveComponent("uv-loading-icon") + a.resolveComponent("uv-textarea") + a.resolveComponent("uv-form") + a.resolveComponent("uv-image") + a.resolveComponent("uv-keyboard") + a.resolveComponent("uv-datetime-picker") + a.resolveComponent("uv-picker") + a.resolveComponent("uni-data-picker"))(), 
Math || (function() {
    return "../../uni_modules/uv-list/components/uv-list-item/uv-list-item.js";
} + function() {
    return "../../uni_modules/uv-list/components/uv-list/uv-list.js";
} + function() {
    return "../../uni_modules/uv-cell/components/uv-cell/uv-cell.js";
} + function() {
    return "../../uni_modules/uv-cell/components/uv-cell-group/uv-cell-group.js";
} + function() {
    return "../../uni_modules/uv-upload/components/uv-upload/uv-upload.js";
} + function() {
    return "../../uni_modules/uv-input/components/uv-input/uv-input.js";
} + function() {
    return "../../uni_modules/uv-form/components/uv-form-item/uv-form-item.js";
} + function() {
    return "../../uni_modules/uv-icon/components/uv-icon/uv-icon.js";
} + function() {
    return "../../uni_modules/uv-button/components/uv-button/uv-button.js";
} + function() {
    return "../../uni_modules/uv-checkbox/components/uv-checkbox/uv-checkbox.js";
} + function() {
    return "../../uni_modules/uv-checkbox/components/uv-checkbox-group/uv-checkbox-group.js";
} + function() {
    return "../../uni_modules/zb-table/components/zb-table/zb-table.js";
} + function() {
    return "../../uni_modules/uv-loading-icon/components/uv-loading-icon/uv-loading-icon.js";
} + function() {
    return "../../uni_modules/uv-textarea/components/uv-textarea/uv-textarea.js";
} + function() {
    return "../../uni_modules/uv-form/components/uv-form/uv-form.js";
} + function() {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
} + function() {
    return "../../uni_modules/uv-keyboard/components/uv-keyboard/uv-keyboard.js";
} + function() {
    return "../../uni_modules/uv-datetime-picker/components/uv-datetime-picker/uv-datetime-picker.js";
} + function() {
    return "../../uni_modules/uv-picker/components/uv-picker/uv-picker.js";
} + function() {
    return "../../uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.js";
})();

var d = a._export_sfc(r, [ [ "render", function(e, o, t, n, i, r) {
    return a.e({
        a: a.o(function(e) {
            return r.goPage("car/brand");
        }),
        b: a.p({
            title: n.showCar.carInfo.series_name,
            note: n.showCar.carInfo.firms_name,
            thumb: n.showCar.carInfo.brand_titlepic,
            "thumb-size": "lg",
            rightText: n.showCar.carInfo.brand_name,
            "show-arrow": !0,
            clickable: !0
        }),
        c: a.o(function(e) {
            return r.showCategoryPicker();
        }),
        d: a.p({
            title: "产品类型",
            value: i.category,
            isLink: !0
        }),
        e: i.showCategory1
    }, i.showCategory1 ? {
        f: a.o(function(e) {
            return r.showCategoryPicker1();
        }),
        g: a.p({
            title: "产品系列",
            value: i.category1,
            isLink: !0
        })
    } : {}, {
        h: a.o(function(e) {
            return r.showProductPicker();
        }),
        i: a.p({
            title: "选择型号",
            value: i.product,
            isLink: !0
        }),
        j: a.o(r.afterRead),
        k: a.o(r.deletePic),
        l: a.p({
            fileList: i.fileListtitlepic,
            name: "titlepic",
            maxCount: 1
        }),
        m: a.o(function(e) {
            return i.model.addInfo.truename = e;
        }),
        n: a.p({
            placeholder: "请输入客户姓名",
            border: "none",
            modelValue: i.model.addInfo.truename
        }),
        o: a.p({
            labelWidth: "80",
            label: "客户姓名",
            prop: "addInfo.truename",
            borderBottom: !0
        }),
        p: a.o(function(e) {
            return i.model.addInfo.mobile = e;
        }),
        q: a.p({
            placeholder: "请输入客户电话",
            border: "none",
            modelValue: i.model.addInfo.mobile
        }),
        r: a.p({
            labelWidth: "80",
            label: "客户电话",
            prop: "addInfo.mobile",
            borderBottom: !0
        }),
        s: a.o(function(e) {
            return i.model.addInfo.chepaihao = e;
        }),
        t: a.p({
            disabled: !0,
            disabledColor: "#ffffff",
            placeholder: "请输入车牌号",
            border: "none",
            modelValue: i.model.addInfo.chepaihao
        }),
        v: a.p({
            name: "arrow-right"
        }),
        w: a.o(r.showChepai),
        x: a.p({
            labelWidth: "80",
            label: " 车 牌 号",
            prop: "addInfo.chepaihao",
            borderBottom: !0
        }),
        y: a.o(function(e) {
            return i.model.addInfo.chejiahao = e;
        }),
        z: a.p({
            placeholder: "请输入车架号",
            border: "none",
            modelValue: i.model.addInfo.chejiahao
        }),
        A: a.p({
            labelWidth: "80",
            label: " 车 架 号",
            prop: "addInfo.chejiahao",
            borderBottom: !0
        }),
        B: a.o(function(e) {
            return i.model.addInfo.bianhao = e;
        }),
        C: a.p({
            placeholder: "请输入质保编号",
            border: "none",
            modelValue: i.model.addInfo.bianhao
        }),
        D: a.p({
            labelWidth: "80",
            label: "质保编号",
            prop: "addInfo.bianhao",
            borderBottom: !0
        }),
        E: a.o(r.scanCode),
        F: a.p({
            text: "扫码",
            type: "success",
            size: "mini"
        }),
        G: a.o(function(e) {
            return i.model.addInfo.juanxin = e;
        }),
        H: a.p({
            placeholder: "请输入膜卷芯号",
            border: "none",
            modelValue: i.model.addInfo.juanxin
        }),
        I: a.p({
            labelWidth: "80",
            label: "膜卷芯号",
            prop: "addInfo.juanxin",
            borderBottom: !0
        }),
        J: a.o(function(e) {
            return i.model.addInfo.lingshou = e;
        }),
        K: a.p({
            placeholder: "请输入施工价格",
            border: "none",
            modelValue: i.model.addInfo.lingshou
        }),
        L: a.p({
            labelWidth: "80",
            label: "施工价格",
            prop: "addInfo.lingshou",
            borderBottom: !0
        }),
        M: a.o(function(e) {
            return i.model.addInfo.daodian = e;
        }),
        N: a.p({
            border: "none",
            disabled: !0,
            disabledColor: "#ffffff",
            placeholder: "请选择到店时间",
            modelValue: i.model.addInfo.daodian
        }),
        O: a.p({
            name: "arrow-right"
        }),
        P: a.o(r.showDaodianPicker),
        Q: a.p({
            label: "到店时间",
            labelWidth: "80",
            prop: "addInfo.daodian",
            borderBottom: !0
        }),
        R: a.o(function(e) {
            return i.model.addInfo.shigong = e;
        }),
        S: a.p({
            border: "none",
            disabled: !0,
            disabledColor: "#ffffff",
            placeholder: "请选择施工时间",
            modelValue: i.model.addInfo.shigong
        }),
        T: a.p({
            name: "arrow-right"
        }),
        U: a.o(r.showShigongPicker),
        V: a.p({
            label: "施工时间",
            labelWidth: "80",
            prop: "addInfo.shigong",
            borderBottom: !0
        }),
        W: a.o(function(e) {
            return i.model.addInfo.zhibao = e;
        }),
        X: a.p({
            border: "none",
            disabled: !0,
            disabledColor: "#ffffff",
            placeholder: "请选择质保时间",
            modelValue: i.model.addInfo.zhibao
        }),
        Y: a.p({
            name: "arrow-right"
        }),
        Z: a.o(r.showZhibaoPicker),
        aa: a.p({
            labelWidth: "80",
            label: "质保时间",
            prop: "addInfo.zhibao",
            borderBottom: !0
        }),
        ab: a.o(function(e) {
            return i.model.addInfo.chanpin = e;
        }),
        ac: a.p({
            placeholder: "请输入施工产品",
            border: "none",
            modelValue: i.model.addInfo.chanpin
        }),
        ad: a.p({
            labelWidth: "80",
            label: "施工产品",
            prop: "addInfo.chanpin",
            borderBottom: !0
        }),
        ae: a.o(function(e) {
            return i.model.addInfo.xiangmu = e;
        }),
        af: a.p({
            placeholder: "请输入施工项目",
            border: "none",
            modelValue: i.model.addInfo.xiangmu
        }),
        ag: a.p({
            labelWidth: "80",
            label: "施工项目",
            prop: "addInfo.xiangmu",
            borderBottom: !0
        }),
        ah: a.o(function(e) {
            return i.model.addInfo.yanse = e;
        }),
        ai: a.p({
            placeholder: "请输入产品颜色",
            border: "none",
            modelValue: i.model.addInfo.yanse
        }),
        aj: a.p({
            labelWidth: "80",
            label: "产品颜色",
            prop: "addInfo.yanse",
            borderBottom: !0
        }),
        ak: a.o(function(e) {
            return i.model.addInfo.jishi = e;
        }),
        al: a.p({
            placeholder: "请输入施工技师",
            border: "none",
            modelValue: i.model.addInfo.jishi
        }),
        am: a.p({
            labelWidth: "80",
            label: "施工技师",
            prop: "addInfo.jishi",
            borderBottom: !0
        }),
        an: a.o(function(e) {
            return i.model.addInfo.danwei = e;
        }),
        ao: a.p({
            placeholder: "请输入施工单位",
            border: "none",
            modelValue: i.model.addInfo.danwei
        }),
        ap: a.p({
            labelWidth: "80",
            label: "施工单位",
            prop: "addInfo.danwei",
            borderBottom: !0
        }),
        aq: i.buweiBox
    }, i.buweiBox ? {
        ar: a.o(function(e) {
            return i.model.addInfo.buwei = e;
        }),
        as: a.p({
            placeholder: "请输入施工部位",
            border: "none",
            modelValue: i.model.addInfo.buwei
        }),
        at: a.p({
            labelWidth: "80",
            label: "施工部位",
            prop: "addInfo.buwei",
            borderBottom: !0
        }),
        av: a.f(i.checkboxList, function(e, o, t) {
            return {
                a: o,
                b: "8f07118e-46-" + t + ",8f07118e-45",
                c: a.p({
                    customStyle: {
                        padding: "8px"
                    },
                    label: e.name,
                    name: e.name
                })
            };
        }),
        aw: a.o(r.checkboxChange),
        ax: a.o(function(e) {
            return i.checkboxValue = e;
        }),
        ay: a.p({
            customStyle: {
                margin: "0 -8px"
            },
            modelValue: i.checkboxValue
        }),
        az: a.o(r.buttonEdit),
        aA: a.p({
            "show-header": !0,
            columns: i.columnTable,
            stripe: !0,
            fit: !0,
            border: !0,
            data: i.dataTable
        }),
        aB: a.p({
            show: i.tableLoading
        })
    } : {}, {
        aC: a.o(function(e) {
            return i.model.addInfo.intro = e;
        }),
        aD: a.p({
            placeholder: "请输入订单备注",
            count: !0,
            modelValue: i.model.addInfo.intro
        }),
        aE: a.p({
            prop: "addInfo.intro",
            borderBottom: !0
        }),
        aF: a.o(r.submit),
        aG: a.p({
            type: "primary",
            color: "#109E54",
            text: "提交",
            size: "large"
        }),
        aH: a.sr("form", "8f07118e-7"),
        aI: a.p({
            labelWidth: "80",
            labelPosition: "left",
            model: i.model,
            rules: i.rules
        }),
        aJ: a.p({
            src: "/static/image/bottom.png",
            width: "750rpx",
            mode: "widthFix"
        }),
        aK: i.isABC
    }, (i.isABC, {}), {
        aL: a.sr("carInput", "8f07118e-53"),
        aM: a.o(r.carChange),
        aN: a.o(r.carDelete),
        aO: a.o(r.changeCarInputMode),
        aP: a.p({
            mode: "car",
            disKeys: [ "I", "O" ],
            autoChange: !0
        }),
        aQ: a.sr("shigongPicker", "8f07118e-54"),
        aR: a.o(r.shigongConfirm),
        aS: a.o(r.shigongConfirm),
        aT: a.o(function(e) {
            return i.shigongTime = e;
        }),
        aU: a.p({
            closeOnClickOverlay: !1,
            mode: "date",
            modelValue: i.shigongTime
        }),
        aV: a.sr("daodianPicker", "8f07118e-55"),
        aW: a.o(r.daodianConfirm),
        aX: a.o(r.daodianConfirm),
        aY: a.o(function(e) {
            return i.daodianTime = e;
        }),
        aZ: a.p({
            closeOnClickOverlay: !1,
            mode: "date",
            modelValue: i.daodianTime
        }),
        ba: a.sr("zhibaoPicker", "8f07118e-56"),
        bb: a.o(r.zhibaoConfirm),
        bc: a.p({
            cancelColor: "#ffffff",
            columns: i.zhibaoColumns,
            closeOnClickOverlay: !1
        }),
        bd: a.sr("categoryPicker", "8f07118e-57"),
        be: a.o(r.categoryConfirm),
        bf: a.p({
            cancelColor: "#ffffff",
            columns: i.categoryColumns,
            closeOnClickOverlay: !1,
            activeColor: "blue"
        }),
        bg: a.sr("categoryPicker1", "8f07118e-58"),
        bh: a.o(r.categoryConfirm1),
        bi: a.p({
            cancelColor: "#ffffff",
            columns: i.categoryColumns1,
            closeOnClickOverlay: !1,
            activeColor: "blue"
        }),
        bj: a.sr("productPicker", "8f07118e-59"),
        bk: a.o(r.productConfirm),
        bl: a.p({
            cancelColor: "#ffffff",
            columns: i.productColumns,
            closeOnClickOverlay: !1,
            activeColor: "blue"
        }),
        bm: a.w(function(e, o, t) {
            e.data;
            var n = e.error;
            e.options;
            return a.e({
                a: n
            }, n ? {
                b: a.t(n)
            } : {}, {
                c: t,
                d: o
            });
        }, {
            name: "d",
            path: "bm",
            vueId: "8f07118e-60"
        }),
        bn: a.sr("productPicker1", "8f07118e-60"),
        bo: a.o(r.onchange),
        bp: a.p({
            localdata: i.dataTree,
            "popup-title": "请选择产品"
        })
    });
} ] ]);

wx.createPage(d);